import {lazy} from 'react';

export interface routeProps {
    path:string,
    to?:string,
    component?:any,
    children?:Array<routeProps>,
    title?:string
}

const routes:Array<routeProps>=[
    {
        path:'/',
        to:'/home/Lntelligent'
    },
    {
        path:'/home',
        component:lazy(()=>import('../pages/Home')),
        title:'首页',
        children:[
            {
                path:'Lntelligent',
                component:lazy(()=>import('../pages/Child/Lntelligent')),
                title:'智能检测',
                
            },
            {
                path:'Obtain',
                component:lazy(()=>import('../pages/Child/Obtain')),
                title:'就业态势'
            },
            {
                path:'Security',
                component:lazy(()=>import('../pages/Child/Security')),
                title:'安防管理'
            },
            {
                path:'Maintenance',
                component:lazy(()=>import('../pages/Child/Maintenance')),
                title:'设备运维'
            }
        ]
    }
]

export default routes
